package com.system.service;

import com.system.po.CourseCustom;

import java.util.Date;
import java.util.List;

/**
 * CourseService信件信息.
 */
public interface CourseService {
    //根据id更新信件信息
    void upadteById(Integer id, CourseCustom courseCustom) throws Exception;

    //根据id删除信件信息
    Boolean removeById(Integer id) throws Exception;

    //获取分页查询信件信息
    List<CourseCustom> findByPaging(Integer toPageNo) throws Exception;

    //插入信件信息
    Boolean save(CourseCustom couseCustom) throws Exception;

    //获取信件总数
    int getCountCouse() throws Exception;

    //根据id查询
    CourseCustom findById(Integer id) throws Exception;

    //根据名字查询
    List<CourseCustom> findByName(String name) throws Exception;

    //根据发送时间查询
    List<CourseCustom> findByCourseTime(String courseTime) throws Exception;

    //根据商品id查找信件
    List<CourseCustom> findByTeacherID(Integer id) throws Exception;
}
